﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SaleOnlineSystem.Controls
{
    public partial class HandBookShopDetail : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string temp = "";
                if (Session["handbook"] == null)

                    Session["handbook"] = "";

                temp = Session["handbook"].ToString();

                string groupid = temp + "-1";

                if (groupid != "")
                {
                    rpt_handbook.DataSource = DAL.DCollector.DBCollector.Instance.StoredProcedureSelectWhereByGroupID("tbl_Product", "*", "Product_ID", groupid);

                    rpt_handbook.DataBind();
                }

            }

        }
    }
}